from selenium import webdriver
from time import sleep

from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()


driver.get("file:///C:/Users/Administrator/Desktop/test.html")


driver.maximize_window()

driver.find_element(By.ID,"btnAlert").click()
al = driver.switch_to.alert
al.accept()

sleep(2)
driver.close()
sleep(1)
driver.quit()


action = ActionChains(driver)
